package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_discover_comment;

import cn.com.api.mapper.ApiU_discover_commentMapper;

import cn.com.api.service.ApiU_discover_commentService;

/**
 * 
 **/
@Service
public class U_discover_commentServiceImplBase {
	@Autowired
	private ApiU_discover_commentMapper apiU_discover_commentMapper;
    
    // 根据id获取
	public ApiU_discover_comment findU_discover_commentById(Integer id){
		ApiU_discover_comment u_discover_comment = apiU_discover_commentMapper.findU_discover_commentById( id );
		return u_discover_comment;
	}
    
    //查看数据集
	public List<ApiU_discover_comment> findU_discover_comments(){
        List<ApiU_discover_comment> u_discover_comments = apiU_discover_commentMapper.findU_discover_comments();
		return u_discover_comments;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_discover_commentsByMap(HashMap condition){
        List<Map<String, Object>> u_discover_comments = apiU_discover_commentMapper.findU_discover_commentsByMap(condition);
		return u_discover_comments;
    }
    
	// 添加
	public int insertU_discover_comment(ApiU_discover_comment u_discover_comment){
		int ret_I= apiU_discover_commentMapper.insertU_discover_comment(u_discover_comment);
		return ret_I;
	}

	// 修改
	public int updateU_discover_comment(ApiU_discover_comment u_discover_comment){
		int ret_I= apiU_discover_commentMapper.updateU_discover_comment(u_discover_comment);
		return ret_I;
	}
	
    // 删除
	public int deleteU_discover_comment(Integer id){
		int ret_I= apiU_discover_commentMapper.deleteU_discover_comment( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


